interface Stores {
    id: number;
    name: string;
    address: string;
    logo: string;
    phone: string;
    month_sales: number;
    today_sales: number;
    total_sales: number;
    agent_profit: number;
    service_price: number;
    created_at: string;
    updated_at: string;
    machines: Machine[];
    user: UserInfo;
}

interface Machine {
    id: number;
    store_id: number;
    device_id: string;
    device_password: string;
    name: string;
    agent_id: number;
    created_at: string;
    updated_at: string;
}

interface UserInfo {
    id: number;
    avatarUrl: string;
    nickname: string;
    phone: string | null;
    gender: string;
    openid: string;
    unionid: string | null;
    city: string | null;
    country: string | null;
    province: string | null;
    sex: string;
    is_blacklisted: number;
    is_store: number;
    created_at: string;
    updated_at: string;
}

export type {Stores, Machine, UserInfo}